
import 'package:flutter/material.dart';
import 'package:flutter_login/flutter_login.dart';
import 'package:flutter_login_animation/route.dart';

class LoginScreen extends StatelessWidget {

  @override
    Widget build(BuildContext context) {
    return Scaffold(
      body: FlutterLogin(
          title: 'Fitness',
          // logo: const AssetImage('assets/1.png'),
          onLogin: (_){

          },
          onSignup: (_){

          },
          onSubmitAnimationCompleted: () {
            Navigator.of(context).pushReplacementNamed(RouterManager.homePath);
          },
          onRecoverPassword: (_){

          },
          messages: LoginMessages(
            userHint: '',
            passwordHint: '',
            confirmPasswordHint: 'Confirm',
            loginButton: 'LOG IN',
            signupButton: 'REGISTER',
            forgotPasswordButton: 'Forgot huh?',
            recoverPasswordButton: 'HELP ME',
            goBackButton: 'GO BACK',
            confirmPasswordError: 'Not match!',
            recoverPasswordDescription:
            'Lorem Ipsum is simply dummy text of the printing and typesetting industry',
            recoverPasswordSuccess: 'Password rescued successfully',
          ),
          theme: LoginTheme(
              primaryColor: const Color(0xFF00B6F0),
          ),

      ),
    );
  }
}